package com.ruoyi.restaurant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 res_order
 * 
 * @author zhengzijia0934
 * @date 2023-12-20
 */
public class ResOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 顾客姓名 */
    @Excel(name = "顾客姓名")
    private String nameC;

    /** 店铺名称 */
    @Excel(name = "店铺名称")
    private String nameR;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String dish;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 所属店铺id */
    @Excel(name = "所属店铺id")
    private Long shopId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNameC(String nameC) 
    {
        this.nameC = nameC;
    }

    public String getNameC() 
    {
        return nameC;
    }
    public void setNameR(String nameR) 
    {
        this.nameR = nameR;
    }

    public String getNameR() 
    {
        return nameR;
    }
    public void setDish(String dish) 
    {
        this.dish = dish;
    }

    public String getDish() 
    {
        return dish;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nameC", getNameC())
            .append("nameR", getNameR())
            .append("dish", getDish())
            .append("price", getPrice())
            .append("time", getTime())
            .append("shopId", getShopId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
